#!/usr/bin/python
# -*- coding: utf-8 -*-

import const

class ServerLog:
    """Server log class provide log service 
    
    """
    def __init__( self, log_name='Noname' ):
        import logging
        logging.basicConfig( level = logging.NOTSET,
                format = const.LOG_FROMAT,
                filename = const.LOG_FILE )

        logger = logging.getLogger( log_name )

        self.logger = logger


def main():
    logger = ServerLog( 'ServerLog' ).logger
    logger.info('abcd')
    pass

if __name__ == '__main__':
    main()
